﻿using SIG.Core;
using SIG.Resources.Admin;

namespace SIG.Model.FQAs
{
    public partial class Question : AuditableEntity<int>
    {
        public Question()
        {
            this.EntityName = EntityNames.Question;
        }
     
        public string Title { get; set; }   
        public string Answer { get; set; }
        public int CategoryId { get; set; }
        public bool Active { get; set; }
        public int Importance { get; set; }
        public virtual QuestionCategory Category { get; set; }

        public string CategoryTitle
        {
            get
            {
                if (this.Category != null)
                {
                    return this.Category.Title;
                }
                return string.Empty;
            }
        }
    }
}
